package com.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.dao.impl.AstuffDaoImpl;
import com.model.Astuff;
import com.service.UserManager;

@Component("userManager")
public class UserManagerImpl implements UserManager {
	private AstuffDaoImpl astuffDao;

	public AstuffDaoImpl getAstuffDao() {
		return astuffDao;
	}

	@Resource
	public void setAstuffDao(AstuffDaoImpl astuffDao) {
		this.astuffDao = astuffDao;
	}

	// @Override
	public boolean checkUserLogin(Astuff astuff) {
		return astuffDao.checkUserLogin(astuff);
	}

	public String getUserIdByNameDepart(Astuff astuff) {
		return astuffDao.getUserIdByNameDepart(astuff);
	}
}
